package com.nervenets.web.hibernate.domain;


import com.nervenets.web.enumeration.Method;
import com.nervenets.web.hibernate.DomainObject;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by joe on 17-3-14.
 */
@Entity
@Table(name = "system_log")
public class SystemLog extends DomainObject {
    private long managerId;
    private Method method;
    @Column(columnDefinition = "blob")
    private String postDataJson;
    @Column(columnDefinition = "blob")
    private String resultDataJson;
    private long ip;

    public SystemLog() {
    }

    public SystemLog(long managerId, Method method, String postDataJson, String resultDataJson, long ip) {
        this.managerId = managerId;
        this.method = method;
        this.postDataJson = postDataJson;
        this.resultDataJson = resultDataJson;
        this.ip = ip;
    }

    public Method getMethod() {
        return method;
    }

    public void setMethod(Method method) {
        this.method = method;
    }

    public String getPostDataJson() {
        return postDataJson;
    }

    public void setPostDataJson(String postDataJson) {
        this.postDataJson = postDataJson;
    }

    public long getIp() {
        return ip;
    }

    public void setIp(long ip) {
        this.ip = ip;
    }

    public long getManagerId() {
        return managerId;
    }

    public void setManagerId(long managerId) {
        this.managerId = managerId;
    }

    public String getResultDataJson() {
        return resultDataJson;
    }

    public void setResultDataJson(String resultDataJson) {
        this.resultDataJson = resultDataJson;
    }
}
